package com.d0319;

import java.io.File;
import java.io.IOException;

public class CreatFileTest {
    public static void main(String[] args) {
        CreatFileTest creatFileTest= new CreatFileTest();
        creatFileTest.creatFlie("src/com/d0319","dir1");

        creatFileTest.creatFlie("src/com/d0319/dir1","t2.txt");

    }
    void creatFlie(String path,String name){
        File file=new File(path+name);
        try {
            file.createNewFile();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
